import request from '@/utils/request'




// // 反馈记录数据
export function getFeedbackLogDetail(query) {
  return request({
    url: `/contract-progress-log/contractProgressLogDetail?contractProgressLogId=${query}`,
    method: 'post',
    data: {

    }
  })
}

// 反馈记录数据 列表页查询
export function listFeedBackLog(query) {
  return request({
    url: '/contract-progress-log/contractProgressLogPage',
    method: 'post',
    data: query
  })
}

// 进度查看详情数据
export function getFeedbackList(query) {
  return request({
    url: `/contract-progress-log/contractProgressNodeListNoComplete?contractProgressId=${query}`,
    method: 'post',
    data: {

    }
  })
}

// 进度查看详情数据
export function getFeedbackInfo(query) {
  return request({
    url: `/contract-progress-log/contractProgress?contractProgressId=${query}`,
    method: 'post',
    data: {

    }
  })
}




// 厂区字典查询
export function getOrgList(query) {
  return request({
    url: `/sys-dict/list?type=org`,
    method: 'post',
    data: {
    }
  })
}

// 合同列表查询
export function getProgressList(query) {
  return request({
    url: `/contract-progress-log/contractProgressList`,
    method: 'post',
    data: {
      id:query.id,
      projectId:query.projectId,

    }
  })
}


// 合同列表查询
export function getContractInfoList(query) {
  return request({
    url: `/contract-progress-log/contractInfoList`,
    method: 'post',
    data: {
      projectId:query
    }
  })
}

export function listSelct(query) {
  return request({
    url: '/pigfarm-info/listSelct',
    method: 'post',
    data: {
      deptId:query
    }
  })
}

// 列表页查询
export function delForm(query) {
  return request({
    url: `/contract-progress-log/delete/${query}`,
    method: 'get',
    // data: query
  })
}

// 列表页查询
export function listForm(query) {
  return request({
    url: '/contract-progress-log/list',
    method: 'post',
    data: query
  })
}
// 片区
export function getTreeselect() {
  return request({
    url: '/auth/dept/treeselect',
    method: 'get',
  })
}

export function updateFarmInfo(query) {
  return request({
    url: '/contract-progress-log/addContractProgressLog',
    method: 'post',
    data: query
  })
}


// 新增档案
export function addFarmInfo(query) {
  return request({
    url: '/contract-progress-log/add',
    method: 'post',
    data: query
  })
}
// 查看详情
export function getDetailsById(query) {
  return request({
    url: `/contract-progress-log/getById/${query}`,
    method: 'get',
    // data: query
  })
}


// 开始发起视频验收
export function startVideoChecked(progressNodeId) {
  return request({
    url: `/nodeVideo/self/${progressNodeId}`,
    method: 'post',
    // data: query
  })
}
